#!/bin/bash

# Removes all port 80 connection tracking for given IP address

# Author A Beverley 27 Mar 06

# Uncomment following line for debug
#conntrack -L|grep $1|grep ESTAB|grep 'dport=80'|awk "{ print(\"conntrack -D --orig-src $1 --orig-dst \" substr(\$6,5) \" -p tcp --orig-port-src \" substr(\$7,7) \" --orig-port-dst 80\"); }"

/usr/sbin/conntrack -L|grep $1|grep ESTAB|grep 'dport=80'|awk "{ system(\"conntrack -D --orig-src $1 --orig-dst \" substr(\$6,5) \" -p tcp --orig-port-src \" substr(\$7,7) \" --orig-port-dst 80\"); }"